package com.yt.system.dao;

import com.yt.system.domain.AccountActivity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface AccountActivityMapper {
    int deleteByPrimaryKey(Integer aaId);

    int insert(AccountActivity record);

    int insertSelective(AccountActivity record);

    AccountActivity selectByPrimaryKey(Integer aaId);

    int updateByPrimaryKeySelective(AccountActivity record);

    int updateByPrimaryKey(AccountActivity record);

    AccountActivity selectByAidAndActid(@Param("aid") Integer aid, @Param("actid") Integer actid);

    List<AccountActivity> selectByAid(Integer aid);

    List<AccountActivity> selectByActid(Integer actid);

    List<AccountActivity> selectByActidForGroup(Integer actid);
}